// 第二种方式实现
package cn.ycc1;
import javax.servlet.*;
import java.io.*;

public class HelloGeneric extends GenericServlet {
	// 重写service方法
	public void service (ServletRequest req, ServletResponse res) {
		
		try {
			PrintWriter pw = res.getWriter();
			pw.println("hello, world! generic");
			
		} catch(Exception e) {
			e.printStackTrace();
		}
	}
	
}